package com.example.administrator.appstpremvpdemo.presenter;

import com.example.administrator.appstpremvpdemo.contract.SearchHeadContract;
import com.example.administrator.appstpremvpdemo.model.SearchHeadModel;

/**
 * @Author Administrator
 * @Date 2017/12/23
 * @description
 * @function
 */

public class SearchHeadPresenter implements SearchHeadContract.presenter{

    private static SearchHeadPresenter mSearchHeadPresenter;

    public static SearchHeadPresenter getInstance() {
        if (mSearchHeadPresenter == null) {
            mSearchHeadPresenter = new SearchHeadPresenter();
        }
        return mSearchHeadPresenter;
    }

    private SearchHeadPresenter() {

    }

    SearchHeadContract.model mModel;

    @Override
    public void start() {
        mModel = new SearchHeadModel();
        mModel.start();
    }

    @Override
    public void destroy() {

    }

    @Override
    public void onPause() {

    }

    @Override
    public void onResume() {

    }

    SearchHeadContract.View mView;

    @Override
    public void setReciverView(SearchHeadContract.View view) {
        this.mView = view;
    }
}
